package org.jupiter.blog.api.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
public class JupiterDictionaryDTO extends PageRequestDTO {

	private String uuid;

	@NotBlank(message = "字典类型不能为空")
	@Size(max = 64, message = "字典类型不能超过64个字符")
	private String dictType;

	@NotBlank(message = "字典键不能为空")
	@Size(max = 128, message = "字典键不能超过128个字符")
	private String dictKey;

	@NotBlank(message = "字典值不能为空")
	@Size(max = 255, message = "字典值不能超过255个字符")
	private String dictValue;

	@NotBlank(message = "显示标签不能为空")
	@Size(max = 255, message = "显示标签不能超过255个字符")
	private String dictLabel;

	private Integer sortOrder;

	@Size(max = 500, message = "描述不能超过500个字符")
	private String description;

	private LocalDateTime createTime;

	private LocalDateTime updateTime;

	private LocalDateTime deleteTime;
}
